home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / movefile.zip / MOVEFILE.DOC < prev    next >
Text File  |  1993-01-04  |  9KB  |  556 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.                          MOVEFILE - A File Move Utility
  18.                            Version 1.20 PUBLIC DOMAIN
  19.                                         
  20.  
  21.  
  22.  
  23.                                    09-21-1987
  24.  
  25.  
  26.                                    Jim Drash
  27.  
  28.                             CompuServe ID [76607,70]
  29.                                         
  30.                                  PUBLIC DOMAIN
  31.                            Original Author: Jim Drash
  32.  
  33.  
  34.  
  35.                          MOVEFILE - A File Move Utility 
  36.  
  37.           Contents
  38.  
  39.  
  40.             1.0 Introduction ....................................... 1
  41.             1.1 Technical Information .............................. 1
  42.  
  43.             2.0 Distribution ....................................... 2
  44.  
  45.             3.0 Installation of MOVEFILE ........................... 3
  46.  
  47.             4.0 Using MOVEFILE ..................................... 4
  48.             4.1 Examples of MOVEFILE use ........................... 4
  49.  
  50.             5.0 General Notes ...................................... 6
  51.  
  52.             6.0 Requests and Comments .............................. 7
  53.  
  54.             Appendix A: Summary of changes ......................... 8
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.                                        - ii -
  91.  
  92.  
  93.                          MOVEFILE - A File Move Utility 
  94.  
  95.           1.0 INTRODUCTION
  96.  
  97.  
  98.  
  99.           MOVEFILE is a utility that  allows files to be moved between
  100.           subdirectories.  This  program  is  designed  to  ease  hard
  101.           directory use.
  102.  
  103.  
  104.  
  105.           1.1 TECHNICAL INFORMATION
  106.  
  107.  
  108.           1.  Hardware         - IBM/PC/XT/AT and compatibles
  109.  
  110.           2.  Operating System - PC/MS DOS 2.00 or higher
  111.  
  112.           3.  Memory Usage     - 10K
  113.  
  114.           4.  Limitations        -   will   only    move   files   not
  115.               subdirectories
  116.  
  117.           MOVEFILE  was  written using Borland International's Turbo C
  118.           Version 1.00.  It uses no floating point routines.
  119.  
  120.           Note:  This program,  source  code,  and  documentation  are
  121.           PUBLIC DOMAIN.
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.                                         - 1 -
  149.  
  150.  
  151.                          MOVEFILE - A File Move Utility 
  152.  
  153.           2.0 DISTRIBUTION
  154.  
  155.  
  156.  
  157.           *   MOVEFILE.ARC - contains the following:
  158.  
  159.               1.  MOVEFILE.COM - MOVEFILE Program
  160.  
  161.               2.  MOVEFILE.DOC - MOVEFILE Documentation
  162.  
  163.               3.  MOVEFILE.REV - MOVEFILE Revistion History
  164.  
  165.               4.  MOVEFILE.C   - MOVEFILE Source (Turbo C)
  166.  
  167.               5.  MOVEFILE.MAK - MOVEFILE Make File (Turbo C Make)
  168.  
  169.               6.  EXPARG.C     - EXPARG   Source (PUBLIC DOMAIN)
  170.  
  171.               7.  EXPARG.H      -   EXPARG    Include   File   (PUBLIC
  172.                   DOMAIN)
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.                                         - 2 -
  207.  
  208.  
  209.                          MOVEFILE - A File Move Utility 
  210.  
  211.           3.0 INSTALLATION OF MOVEFILE
  212.  
  213.  
  214.  
  215.           1.  Make a backup copy of MOVEFILE.ARC
  216.  
  217.           2.  Use  one  of  the un-ARChiving utilities (ARCE,  PKXARC,
  218.               etc.) to extract the files.
  219.  
  220.           3.  Copy MOVEFILE.COM to a directory in your PATH.
  221.  
  222.           4.  Read the DOC.  This manual contains  no printer specific
  223.               control  characters other  than  carriage  returns, line
  224.               feeds,  and  form   feeds.  It  should  print  on   most
  225.               printers.
  226.  
  227.           5.  Use and enjoy MOVEFILE
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.                                         - 3 -
  265.  
  266.  
  267.                          MOVEFILE - A File Move Utility 
  268.  
  269.           4.0 USING MOVEFILE
  270.  
  271.  
  272.  
  273.           MOVEFILE is run from the DOS command line as follows:
  274.  
  275.              movefile source target
  276.  
  277.              where:  source  - [d:][path]filename.ext
  278.                                (wildcards: "*" and "?" are supported)
  279.                      target  - [d:]path
  280.  
  281.           The source is a  DOS file  specification  for the file(s) to
  282.           be moved.  The target is a directory that  the files will be
  283.           moved to.
  284.  
  285.           Note: Wildcards are supported so that  multiple files can be
  286.           moved in one MOVEFILE invocation.
  287.  
  288.  
  289.  
  290.           4.1 EXAMPLES OF MOVEFILE USE
  291.  
  292.  
  293.  
  294.           MOVEFILE with no arguments
  295.  
  296.           C:\>movefile
  297.           movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
  298.  
  299.           Usage: movefile source target
  300.           where source - file to be moved (wildcards allowed)
  301.                 target - destination directory
  302.  
  303.           MOVEFILE help
  304.  
  305.           C:\>movefile ?
  306.           movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
  307.  
  308.           Usage: movefile source target
  309.           where source - file to be moved (wildcards allowed)
  310.                 target - destination directory
  311.  
  312.           Move a file to a directory
  313.  
  314.           C:\>movefile file.txt \zz
  315.           movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
  316.  
  317.           FILE.TXT moved to \ZZ
  318.  
  319.  
  320.  
  321.  
  322.                                         - 4 -
  323.  
  324.  
  325.                          MOVEFILE - A File Move Utility 
  326.  
  327.           Move a file from another directory to this one
  328.  
  329.           C:\>movefile \zz\file.txt .
  330.           movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
  331.  
  332.           \ZZ\FILE.TXT moved to .\
  333.  
  334.           Move a file from another directory to the directory above this one
  335.  
  336.           C:\FUBAR>movefile \zz\file.txt ..
  337.           movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
  338.  
  339.           \ZZ\FILE.TXT moved to ..\
  340.  
  341.           Move all files on \zz directory that match "file.*" to this one
  342.  
  343.           C:\>movefile \zz\file.* .
  344.           movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
  345.  
  346.           \ZZ\FILE.TXT moved to .\
  347.           \ZZ\FILE.TXT moved to .\
  348.           \ZZ\FILE.TXT moved to .\
  349.           \ZZ\FILE.BAT moved to .\
  350.           \ZZ\FILE.EXE moved to .\
  351.  
  352.           Move all files on \zz directory that match "file.*" to \test directory
  353.  
  354.  
  355.           C:\>movefile \zz\file.* \test
  356.           movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
  357.  
  358.           \ZZ\FILE.TXT moved to \test
  359.           \ZZ\FILE.TXT moved to \test
  360.           \ZZ\FILE.TXT moved to \test
  361.           \ZZ\FILE.BAT moved to \test
  362.           \ZZ\FILE.EXE moved to \test
  363.  
  364.           Move a file from the c: drive to the a: drive
  365.  
  366.           C:\>movefile file.txt a:
  367.           movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
  368.  
  369.           C:FILE.TXT moved to A:
  370.  
  371.           Move multiple files
  372.  
  373.           C:\>movefile fu.bar file.* test*.bas \zz
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.                                         - 5 -
  381.  
  382.  
  383.                          MOVEFILE - A File Move Utility 
  384.  
  385.           5.0 GENERAL NOTES
  386.  
  387.  
  388.  
  389.           If the source and target drives are the same,  then MOVEFILE
  390.           uses  the DOS rename function  to  accomplish the  move.  If
  391.           the source  and target drives differ the MOVEFILE copies the
  392.           source to the target and deletes the source.
  393.  
  394.           Move a file that does not exist
  395.  
  396.           C:\>movefile fu.bar \zz
  397.           movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
  398.  
  399.           movefile: No such file or directory
  400.           unable to move: fu.bar
  401.  
  402.           Move a file to a directory that does not exist
  403.  
  404.           C:\>movefile file.txt \zz1
  405.           movefile - File Move Utility, Version 1.20, PUBLIC DOMAIN
  406.  
  407.           movefile: No such file or directory
  408.           unable to move: FILE.TXT
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.                                         - 6 -
  439.  
  440.  
  441.                          MOVEFILE - A File Move Utility 
  442.  
  443.           6.0 REQUESTS AND COMMENTS
  444.  
  445.  
  446.  
  447.           All  requests  and  comments  should  be  made  in  writing,
  448.           addressed to:
  449.  
  450.                 Jim Drash
  451.                 2256 Beechmont Ave.
  452.                 Cincinnati, OH 45230
  453.  
  454.           My CompuServe ID is 76607,70
  455.  
  456.           I  welcome  suggestions,  "bug"  reports   and  constructive
  457.           comments.
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.                                         - 7 -
  497.  
  498.  
  499.                          MOVEFILE - A File Move Utility 
  500.  
  501.           APPENDIX A: SUMMARY OF CHANGES
  502.  
  503.  
  504.  
  505.           1.  Version 1.20
  506.  
  507.               a.  PUBLIC DOMAIN
  508.  
  509.               b.  Supports  multiple source file specifications in one
  510.                   invocation
  511.  
  512.               c.  Added Ctrl-Break (abort) processing
  513.  
  514.               d.  DOS version check
  515.  
  516.               e.  Squashed  "bug"  with  cross-drive  move  file  time
  517.                   stamps
  518.  
  519.           2.  Version 1.10
  520.  
  521.               a.  Added support to move between drives
  522.  
  523.           3.  Version 1.00
  524.  
  525.               a.  New Program
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.                                         - 8 -
  555.  
  556.